<template>
	<view class="store-layout" @click="storeClick">
		<image class="left-img" :src="(itemData.omittedGraph)?itemData.omittedGraph[0]:''" mode="aspectFill"></image>
		<view class="right-view">
			<view class="title">{{itemData.name}}</view>
			<view class="time">时间：{{itemData.businessHoursStart}} - {{itemData.businessHoursEnd}}</view>
			<view class="address">{{itemData.address}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			itemData: {
				type: Object,
			},
		},
		data() {
			return {
				
			}
		},
		methods: {
			storeClick(){
				this.$emit('storeClick')
			}
		}
	}
</script>

<style scoped lang="less">
	.store-layout{
		width: calc(100% - 32rpx);
		margin: 16rpx 16rpx 0 16rpx;
		background: #FFFFFF;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		padding: 32rpx;
		box-sizing: border-box;
		display: flex;
		flex-direction: row;
		.left-img{
			width: 144rpx;
			height: 144rpx;
			border-radius: 8rpx;
			margin-right: 20rpx;
		}
		.right-view{
			flex: 1;
			display: flex;
			flex-direction: column;
			.title{
				font-size: 32rpx;
				color: #101413;
				line-height: 44rpx;
			}
			.time{
				font-size: 24rpx;
				color: #585F70;
				line-height: 48rpx;
			}
			.address{
				font-size: 24rpx;
				color: #585F70;
				line-height: 36rpx;
				overflow: hidden;
				-webkit-line-clamp: 2;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-box-orient: vertical;
			}
		}
	}
</style>
